/**
 * Created by zackey on 2016/5/28.
 */
// 定义组件

define(function (require,exports,module) {
    var sTpl = require("templates/Foo.html");
    require("../../lib/layer/layer.js");
    layer.config({
        path: '../../res/lib/layer/' //layer.js所在的目录，可以是绝对目录，也可以是相对目录
    });
    
    var VueComponent = Vue.extend({
        template: sTpl
        ,methods:{
            click1:function(){
                this.msg = "zhang";
                layer.msg("我是Foo页面");
            }
        }
        ,data:function(){
            return {
                msg:"Foo页面!!!!!!!!!!"
            }
        }
    });

    module.exports = VueComponent;
});

